<template>
	<view class="proDetails">
		<view class="title" style="text-align: center;margin-bottom: 15px;color: #000;">
			{{title}}
		</view>
		<u-parse :content="content"></u-parse>
	</view>
</template>

<script>
	import {
		questionSee
	} from '@/request/api.js'
	export default {
		data() {
			return {
				content: ``,
				title: "",
				id: ""
			};
		},
		onLoad(e) {
			this.id = e.id;
			this.loadmore()
		},
		methods: {
			loadmore() {
				questionSee({
					id:this.id
				}).then(res => {
					console.log(res)
					if (res.msg == '成功') {
						this.title = res.data.name
						this.content = res.data.content
					}
				})
			}
		}
	}
</script>

<style lang="scss">
	.proTitle {
		text-align: center;
		margin: 20px 0;
	}

	.proDetails {
		padding: 15px 22rpx;
		color: "#0f0f1d";
	}
</style>